function gfsave(img,name)
    imwrite(uint8(img),fullfile("intermediates2",name+".jpg"))
end